package com.beamfield.dao.sys;

import com.beamfield.model.SystemDictionary;
import com.beamfield.model.SystemDictionaryExample;
import com.beamfield.modelVo.SystemDictionaryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface SystemDictionaryMapper {
    int deleteByPrimaryKey(Long sys_dictionary_id);

    int insert(SystemDictionary record);

    int insertSelective(SystemDictionary record);

    List<SystemDictionary> selectByExample(SystemDictionaryExample example);

    SystemDictionary selectByPrimaryKey(Long sys_dictionary_id);

    int updateByPrimaryKeySelective(SystemDictionary record);

    int updateByPrimaryKey(SystemDictionary record);
    
    List<SystemDictionaryVo> getDirList(@Param("beamId") long beam_id);

    SystemDictionaryVo selectByCode(@Param("code") String code,@Param("beam_id")long beam_id);
    
    SystemDictionary getDicByCodeAndBeam(@Param("code") String code,@Param("beam_id")long beam_id);
}